<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
    <script src="js/elementUI.js"></script>
    <script src="js/axios.js"></script>
    <link rel="stylesheet" href="css/elementUI.css">
</head>
<body>
<div id="app">
    <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="账号">
            <el-input v-model="form.username"></el-input>
        </el-form-item>
        <el-form-item label="密码">
            <el-input v-model="form.password"></el-input>
        </el-form-item>

        <el-form-item>
            <el-button type="primary" @click="findMsg">查询站内信</el-button>
        </el-form-item>


        <el-form-item>
            <el-input type="textarea" v-model="msgContent"></el-input>
        </el-form-item>
    </el-form>
</div>
<script>
    new Vue({
        el:"#app",
        data:{
            form:{},
            msgContent:""
        },
        methods:{
            findMsg(){
                axios.post("/findMsg",this.form).then(res=>{
                    this.msgContent = res.data;
                })
            }
        },
        created(){

        }
    })
</script>
</body>
</html>